package main

import (
	"fmt"
	"net/rpc"
)

func main() {
	//1.通过RPC建立连接
	client, err := rpc.Dial("tcp", "localhost:7777")
	if err != nil {
		panic("connect error!")
	}
	var reply string
	err = client.Call("ClickService.Click", "button", &reply)
	if err != nil {
		panic("invoke error!")
	}
	fmt.Println(reply)
}
